home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Read It Later 0.9924 / read_it_later-0.9924-fx.xpi / chrome / isreaditlater.jar / content / ISRILsidebar.js < prev    next >
Text File  |  2008-10-29  |  1KB  |  46 lines

  1. var ISRIL, ISRILprefs, ISRILxul, ISRILsync, ISRILoffline, ISRILpr, ISRILinit, ISRILglobals;
  2.  
  3. function ISRILsidebar() {
  4. }
  5.  
  6. ISRILsidebar.prototype = {    
  7.  
  8.     _init : function(mainWindow) { 
  9.         
  10.         ISRILsidebar.w = mainWindow;
  11.         
  12.         var p = document.createElement('page');        
  13.         document.getElementById('isRitL-sidebar-wrapper').appendChild( document.getElementById('isRitL-List-inner') );
  14.         document.getElementById('isRitL-List').setAttribute('id', '');
  15.         document.getElementById('isRitL-sidebar-wrapper').setAttribute('id', 'isRitL-List');
  16.  
  17.         ISRIL             = ISRILsidebar.w.ISRIL;
  18.         ISRILprefs         = ISRILsidebar.w.ISRILprefs;
  19.         ISRILoffline         = ISRILsidebar.w.ISRILoffline;
  20.         ISRILinit         = ISRILsidebar.w.ISRILinit;
  21.         ISRILglobals         = ISRILsidebar.w.ISRILglobals;
  22.         
  23.         ISRILsidebar.loadScript('ISRILxul');
  24.         ISRILxul._init('sidebar');
  25.         ISRILxul.window = mainWindow;
  26.         
  27.         ISRILsidebar.loadScript('ISRILpr');        
  28.         ISRILpr.xul = ISRILxul;
  29.         
  30.         ISRILsidebar.loadScript('ISRILsync');
  31.         ISRILsync._init('sidebar');
  32.         
  33.         ISRILxul.OpenReadingList();
  34.     },
  35.     
  36.     loadScript : function(jsFile) {
  37.         
  38.         Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
  39.               .getService(Components.interfaces.mozIJSSubScriptLoader)
  40.               .loadSubScript("chrome://isreaditlater/content/"+jsFile+".js"); 
  41.         
  42.     },
  43.             
  44. }
  45.  
  46. var ISRILsidebar = new ISRILsidebar();